package com.example.mes_boot.mapper;

import com.example.mes_boot.pojo.factory;
import com.example.mes_boot.pojo.process;
import com.example.mes_boot.pojo.project;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface updatamapper {
    @Update("update cf_electric_checkpoint set name=#{name}" +
            ",address=#{address},rt_power=#{rt_power},rt_voltage=#{rt_voltage}" +
            ",status=#{status},remark=#{remark} where id=#{id}")
    void updata(Integer id,String name,String address,String rt_power,Integer rt_voltage,String status,String remark);
    void projectup(Integer id,String name, String leader, String startDate, String endDate, String status);
    void up(Integer id,Integer material_id);

    Integer updataprocess(@Param("process") process process);

    void updatamaterial(String id,String name);
}
